QGrid
Drag and Drop
|
|
| QG_GetDragSignatures(areaRef; dragSignatures):errorCode | |||
|
|
areaRef | Longint | QGrid area reference |
|
|
dragSignatures | Array string | Drag signatures |
|
|
error | Longint | Error result |
Returns the signatures that are emitted when the user starts a drag from the grid area.
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Array parameter dragSignatures receives the string signatures that will be emitted from the grid area during a drag. Drag signatures are strings up to 31 characters in length.
When dragging from the grid area has not been enabled, parameter dragSignatures is set to an empty array.
Example
` test whether dragging from grid area xQGrid is enabled ARRAY STRING(31;$dragTypes;0)C_BOOLEAN($draggingIsEnabled) $draggingIsEnabled:=False $err:=QG_GetDragSignatures (xQGrid;$dragTypes)If ($err # qg_noErr) ` Handle the errorElse $draggingIsEnabled:=(Size of array($dragTypes) # 0)End if |
Related commands
| QG_SetDragSignatures | Configures a grid area to allow dragging |
| QG_GetDropSignatures | Returns the signatures that are allowed to be dropped on a grid area |